| 
                
               | 
              
                
               | 
              
                @@ -69,6 +69,7 @@ def clerk_update(request): 
               | 
            
            
            
              | 
                69
               | 
              
                69
               | 
              
                     clerk_id = request.POST.get('clerk_id', '')
               | 
            
            
            
              | 
                70
               | 
              
                70
               | 
              
                     clerk_name = request.POST.get('clerk_name', '')
               | 
            
            
            
              | 
                71
               | 
              
                71
               | 
              
                     clerk_phone = request.POST.get('clerk_phone', '')
               | 
            
            
            
              | 
                
               | 
              
                72
               | 
              
                +    user_status = request.POST.get('user_status', '0')
               | 
            
            
            
              | 
                72
               | 
              
                73
               | 
              
                     is_auth = request.POST.get('is_auth', '0')  # 1 为已授权,0 为未授权
               | 
            
            
            
              | 
                73
               | 
              
                74
               | 
              
                  
               | 
            
            
            
              | 
                74
               | 
              
                75
               | 
              
                     admin_id = request.session.get('admin_id')
               | 
            
            
            
            
            
              | 
                
               | 
              
                
               | 
              
                @@ -87,6 +88,8 @@ def clerk_update(request): 
               | 
            
            
            
              | 
                87
               | 
              
                88
               | 
              
                         clerk.clerk_name = clerk_name 
               | 
            
            
            
              | 
                88
               | 
              
                89
               | 
              
                     if clerk_phone: 
               | 
            
            
            
              | 
                89
               | 
              
                90
               | 
              
                         clerk.clerk_phone = clerk_phone 
               | 
            
            
            
              | 
                
               | 
              
                91
               | 
              
                +    if user_status: 
               | 
            
            
            
              | 
                
               | 
              
                92
               | 
              
                +        clerk.user_status = bool(int(user_status)) 
               | 
            
            
            
              | 
                90
               | 
              
                93
               | 
              
                     if is_auth: 
               | 
            
            
            
              | 
                91
               | 
              
                94
               | 
              
                         clerk.is_auth = bool(int(is_auth)) 
               | 
            
            
            
              | 
                92
               | 
              
                95
               | 
              
                  
               |